package com.kl.feign.fallback;

import com.kl.domain.UserDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.LoginsServiceFeign;
import org.springframework.stereotype.Component;

@Component
public class LoginsServiceFeignFallback implements LoginsServiceFeign {
    @Override
    public Result<UserDTO> getLoginUser() {
        //书写降级逻辑,大多数打印日志
        return Result.build(ConstantEnum.FaillBack);
    }
}
